package t.l;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.Collection;
import javax.swing.JOptionPane;

public class Util {

  public static final Gson gson = new GsonBuilder().setPrettyPrinting().create();

  public static void toast(String message, String title, int messageType) {
    JOptionPane.showMessageDialog(null, message, title, messageType);
  }

  public static boolean notEmpty(Collection collection) {
    return collection != null && !collection.isEmpty();
  }
}
